/*eslint-disable */ 
import request from "@/utils/request";

export function coachList(data) {
    return request({
      url: `coach/coachList?pageNumber=${data.pageNumber}&pagesize=${data.pagesize}`,
      method: "get",
    });
  }

  export function addCoach(data) {
    return request({
      url: `/coach/addCoach`,
      method: "post",
      data:data
    });
  }

  export function deleteCoach(id) {
    return request({
      url: `/coach/deleteCoach?id=${id}`,
      method: "post",
     
    });
  }
  export function updateCoa(data) {
    return request({
      url: `/coach/updateCoach`,
      method: "post",
      data:data
    });
  }

  export function getInfo(id) {
    return request({
      url: `/coach/getCoachInfo?id=${id}`,
      method: "get",
     
    });
  }

  
export function allcoach() {
  return request({
    url: `coach/allCoach`,
    method: "get",
  });
}
export function searchCoach(data) {
  return request({
    url: "coach/search",
    data: data,
    method: "post",
  });
}
